package net.qhzw.vip.qiyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.qhzw.vip.qiyu.entity.GuaranteeCompany;
import net.qhzw.vip.qiyu.model.GuaranteeCompanyUserVo;
import org.apache.ibatis.annotations.Param;

public interface GuaranteeCompanyMapper extends BaseMapper<GuaranteeCompany> {

    /***
     * 根据用户id查询担保公司
     * @param userIdCard
     * @return
     */
    GuaranteeCompanyUserVo findGuaranteeCompanyByUserIdCard(@Param("shopId") Long shopId,
                                                            @Param("userIdCard") String userIdCard,
                                                            @Param("status") Byte status);


    /***
     * 根据用户身份证号查询担保公司
     * @param idCard
     * @return
     */
    String getNameByUserId(String idCard);

}